/**   
* @Title: CaptchaUsernamePasswordToken.java 
* @Package com.mabang.tuanche.admin.service.shiro 
* @Description: TODO(用一句话描述该文件做什么) 
* @author PeterSo  supei_slm@qq.com
* @date 2016年5月10日 下午5:51:17 
* @version V1.0   
*/
package com.peter.ssmdemo.service.shiro;

import org.apache.shiro.authc.UsernamePasswordToken;

/** 
* @ClassName: CaptchaUsernamePasswordToken 
* @Description: Shiro UsernamePasswordToken扩展类，增加验证码属性
* @author PeterSo  supei_slm@qq.com
* @date 2016年5月10日 下午5:51:17 
*/
public class CaptchaUsernamePasswordToken extends UsernamePasswordToken {

	private static final long serialVersionUID = 1L;
	//验证码字符串
	private String captcha;

	public CaptchaUsernamePasswordToken(String username, char[] password,
			boolean rememberMe, String host, String captcha) {
		super(username, password, rememberMe, host);
		this.captcha = captcha;
	}
	
	public CaptchaUsernamePasswordToken(){
		super();
	}

	public String getCaptcha() {
		return captcha;
	}

	public void setCaptcha(String captcha) {
		this.captcha = captcha;
	}
	
}
